package app

type CmdToCollectData struct {
	Branch     string `json:"branch" valid:"Required"`
	Date       string `json:"date" valid:"Required"`
	CallbackId string `json:"callback_id" valid:"Required"`
}

type CmdToGenerate struct {
	CveNum map[string][]string `json:"cve_num" valid:"Required"`
	Date   string              `json:"date" valid:"Required"`
}

func (c CmdToGenerate) GetCveNum() []string {
	var data []string
	for k := range c.CveNum {
		data = append(data, k)
	}

	return data
}
